<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>充值充流量列表-充值充流量任务添加</title>
<link href="/zhenze/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.js"></script>
<script type="text/javascript" src="/zhenze/Public/My97DatePicker/WdatePicker.js"></script>

<link href="/zhenze/Public/validform/Validform.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/validform/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="/zhenze/Public/validform/Validform_Datatype.js"></script>


<link href="/zhenze/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/zhenze/Public/admin/js/select-ui.min.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
	$("#buy_type").uedSelect({
		width : 150			  
	});
});
</script>
</head>

<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('buylist/index');?>">充值充流量任务列表</a></li>
			<li><a href="#">充值充流量任务添加</a></li>
		</ul>
    </div>
    
    <div class="formbody">
    

		<div class="formtitle"><span>充值充流量任务添加</span></div>

		<form name="myform" id="myform" action="<?php echo U('buylist/addbuylist');?>" method="post">
			<ul class="forminfo">
				
				<li><label>套餐分类</label> 
					<div class="vocation">
					<select id="buy_type" name="info[buy_type]" datatype="*" errormsg="区域不能为空！">
						<option value="">选择套餐</option> 
						<?php if(is_array($get_states)): $i = 0; $__LIST__ = $get_states;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"><?php echo ($data); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
					</select> 
					<i class="Validform_checktip"></i>
					</div>
				</li>
				<li><label>显示值</label><input name="info[buy_money]" id="buy_money" type="text" class="dfinput"  datatype="/^\d+(\.\d+)?$/" errormsg="显示值不能为空，且为小数（1-8位）！" maxlength="8" /><i class="Validform_checktip"></i></li>
				<li><label>销售金额</label><input name="info[buy_price]" id="buy_price" type="text" class="dfinput" datatype="/^\d+(\.\d+)?$/" errormsg="销售金额不能为空，且为小数（1-8位）！" maxlength="8" /><i class="Validform_checktip"></i></li>
				<li><label>备注信息</label><input name="info[buy_remark]" id="buy_remark" type="text" class="dfinput" datatype="*"  maxlength="20" /><i class="Validform_checktip"></i></li>
				<li><label>&nbsp;</label><input name="loginbtn" type="submit" class="btn" value="确认保存"/></li>
			</ul>
		</form>
    
    </div>

	<script>
	$(function(){
		$("#myform").Validform({
			//tiptype:2
			tiptype:function(msg,o,cssctl){
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		});
	}); 
	</script>
</body>

</html>